package com.iflytek.esb.service;

import java.util.Map;

public interface TraceService {

	void traceExecute(long entryId, String entryName, int actionId, String actionName, Map<String, String> messageHeaders, String messageBody, boolean hasException, String exceptionMessage);
	
	void traceFailure(long entryId, String entryName, String messageId, String exceptionMessage);
}
//public void traceExecute(long entryId, String entryName, int actionId,
//String actionName, Map<String, String> messageHeaders,
//String messageBody, boolean hasException, String exceptionMessage) {
//
//MessageTrace mt = new MessageTrace();
//mt.setActionId(actionId);
//mt.setActionName(actionName);
//mt.setEntryId(entryId);
//mt.setEntryName(entryName);
//mt.setId(UUID.randomUUID().toString());
//mt.setMessageBody(messageBody);
//mt.setMessageHeaders(messageHeaders);
//mt.setTime(new Date());
//mt.setHasExeption(hasException);
//mt.setExceptionMessage(exceptionMessage);
//
//traceDao.insertMessageTrace(mt);
//
//}
//
//public void traceFailure(long entryId, String entryName, String messageId,
//String exceptionMessage) {
//
//Failure f = new Failure();
//f.setEntryId(entryId);
//f.setEntryName(entryName);
//f.setId(UUID.randomUUID().toString());
//f.setMessage(exceptionMessage);
//f.setMessageId(messageId);
//f.setTime(new Date());
//
//traceDao.insertFailure(f);
//}
